{% load i18n %}
{% load sentry_avatars %}
{% load sentry_assets %}
{% load sentry_features %}
{% load sentry_helpers %}
{% load sentry_react %}

{% load sentry_status %}
{% get_sentry_version %}

<!DOCTYPE html>
<html lang="en">
<head>
  <meta http-equiv="content-type" content="text/html; charset=utf-8">
  <meta name="robots" content="NONE,NOARCHIVE">
  <meta name="viewport" content="width=device-width, initial-scale=1">

  <link href="{% absolute_asset_url "sentry" "images/favicon.ico" %}" rel="shortcut icon" type="image/png"/>

  <link rel="icon" href="{% absolute_asset_url "sentry" "images/icons/apple-touch-icon.png" %}">
  <link rel="apple-touch-icon" href="{% absolute_asset_url "sentry" "images/icons/apple-touch-icon.png" %}">
  <link rel="apple-touch-icon" sizes="76x76" href="{% absolute_asset_url "sentry" "images/icons/apple-touch-icon-76x76.png" %}">
  <link rel="apple-touch-icon" sizes="120x120" href="{% absolute_asset_url "sentry" "images/icons/apple-touch-icon-120x120.png" %}">
  <link rel="apple-touch-icon" sizes="152x152" href="{% absolute_asset_url "sentry" "images/icons/apple-touch-icon-152x152.png" %}">

  <link rel="mask-icon" sizes="any" href="{% absolute_asset_url "sentry" "images/icons/sentry-glyph-black.svg" %}" color="#FB4226">

  <link href="{% asset_url "sentry" "dist/sentry.css" %}" rel="stylesheet"/>

  {% block css %}{% endblock %}

  <title>{% block title %}Sentry{% endblock %}</title>

  <script>
    window.__initialData = {% get_react_config %};
  </script>

  {% block scripts %}
  {% locale_js_include %}
  <script src="{% asset_url "sentry" "dist/vendor.js" %}"{% crossorigin %}></script>
  <script src="{% asset_url "sentry" "dist/app.js" %}"{% crossorigin %}></script>

  <script>
    // if the ads.js file loads below it will mark this variable as false
    window.adblockSuspected = true;
  </script>
  <script src="{% asset_url 'sentry' 'js/ads.js' %}"></script>
  {% endblock %}
</head>

<body class="{% block wrapperclass %}{% endblock %}">
  {% block body %}
  <div class="app">
    {% if request.is_superuser %}
        {% show_system_status %}
    {% endif %}

    {% block alerts %}
    {% include "sentry/partial/alerts.html" %}
    {% endblock %}

    <div class="container">
      <div class="content">
        {% block content %}{% endblock %}
      </div>
    </div>
    <footer>
      <div class="container">
        {% block footer %}
        <div class="pull-right">
          <a href="https://docs.sentry.io/hosted/api/">{% trans "API" %}</a>
          <a href="https://docs.sentry.io">{% trans "Docs" %}</a>
          <a href="https://github.com/getsentry/sentry" rel="noreferrer">{% trans "Contribute" %}</a>
          {% if ONPREMISE %}<a href="/out/">{% trans "Migrate to SaaS" %}</a>{% endif %}
        </div>
        {% if ONPREMISE %}<div class="version pull-left">Sentry {{ sentry_version.current }} ({{ sentry_version.build }}) {% if sentry_version.update_available %}<a href="#" title="You're running an old version of Sentry, did you know {{ sentry_version.latest }} is available?" class="tip icon-circle-arrow-up">&nbsp;</a>{% endif %}</div>{% endif %}
        <a href="/" class="icon-sentry-logo"></a>
        {% endblock %}
      </div>
    </footer>
  </div>
  {% endblock %}

  {% block scripts_bottom %}{% endblock %}
</body>
</html>
